package com.ax.center.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.lang.reflect.Type;
import java.util.List;

/**
 * @author zy
 * @date 2023/7/4 10:39
 */
@Data
@Accessors(chain = true)
@TableName(value = "users")
@ApiModel(value = "用户实体类")
public class Users implements Serializable {



    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户名称")
    private String name;
    @ApiModelProperty(value = "用户密码")
    private String password;
    @ApiModelProperty(value = "用户性别")
    private String sex;
    @ApiModelProperty(value = "工号id")
    private Long staffId;
    @ApiModelProperty(value = "部门名称")
    private String departmentName;
    @TableField(exist = false)
    @ApiModelProperty(value = "角色权限列表")
    private List<Integer> permissions;

}
